<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <style type="text/css">
        .layui-container {
            padding-top: 20px;
            width: auto;;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <form id="form" class="layui-form layui-form-pane" action="" lay-filter="example">
        <input type="hidden" name="buildCorpId" class="formData" value="">
        <input type="hidden" name="prjId" class="formData" value="">
        <!--建设单位信息-->
        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">建设单位信息</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-table v-table">
                        <tbody>
                        <tr class="layui-hide">
                            <td width="24%"></td>
                            <td width="13%"></td>
                            <td width="13%"></td>
                            <td width="24%"></td>
                            <td width="13%"></td>
                            <td width="13%"></td>
                        </tr>
                        <tr>
                            <td class="th8 required">联系人姓名</td>
                            <td colspan="2">
                                <input name="comconnperson" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" autocomplete="off"
                                       placeholder="联系人姓名">
                            </td>
                        </tr>
                        <tr>
                            <td class="th8 required">身份证号</td>
                            <td colspan="2">
                                <input name="comartiCertCode" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" autocomplete="off"
                                       placeholder="身份证号">
                            </td>
                        </tr>
                        <tr>
                            <td class="th8 required">联系人手机</td>
                            <td colspan="2">
                                <input name="comartiphone" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" autocomplete="off"
                                       placeholder="联系人手机">
                            </td>
                        </tr>
                        <tr>
                            <td class="th8 required">联系人邮箱</td>
                            <td colspan="2">
                                <input name="orgLinkMailbox" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" autocomplete="off"
                                       placeholder="联系人邮箱">
                            </td>
                        </tr>
                        <tr>
                            <td class="th8 required">登录名</td>
                            <td colspan="2">
                                <input name="userName" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" autocomplete="off"
                                       placeholder="登录名">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <!--附件信息-->
        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">附件信息</h2>
                <div class="layui-colla-content layui-show">
                    <p>注：照片完整、文字清晰可辨，照片格式为"jpg格式"或"png格式"，扫描分辨率100DPI即可，单张图片不要超过2M。</p>
                    <table class="layui-hide" id="dataList" lay-filter="dataList"></table>
                </div>
            </div>

        </div>
        <button lay-submit lay-filter="submit" style="display: none;" id="submit" class="demo1">提交</button>
    </form>
</div>
<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    layui.use(['form', 'jquery', 'element', 'sessionFun', 'configure', 'configureCom', 'ztree', 'laydate', 'selectFun'], function () {
        window.$ = layui.$;
        var form = layui.form;
        var configure = layui.configure;
        ztree = layui.ztree;
        var laydate = layui.laydate;
        var configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;
        var token = localStorage.getToken;
        var selectFun = layui.selectFun;
        var element = layui.element;
        configureCom.postDataAjax(configure.MY_COMPANY_LIST_HTTP).then(function(res){
            console.log(res.sysOrgEntity);
            var data = res.sysOrgEntity;
            form.val('example',data)
        });


        var cols = [[
            {
                field: 'name', title: '序号'
            },
            {
                field: '', title: '附件名称'
            },
            {title: '操作', toolbar: '#barDemo', width: 170}
        ]];

        configureCom.tableRender(configure.UNIT_PROJECT_LIST_HTTP, {}, cols, 'dataList', 10, '');
    });

    function getData() {
        var data = {};
        $('.formData').each(function (index, item) {
            var key = $(item).attr('name');
            data[key] = $(item).val();
        });
        return data;
    }
</script>
</body>
</html>
